/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package it.polimi.deib.se2.meteocal.gui;

import it.polimi.deib.se2.meteocal.business.boundary.InvitationManager;
import it.polimi.deib.se2.meteocal.business.boundary.UserManager;
import it.polimi.deib.se2.meteocal.business.entity.Event;
import it.polimi.deib.se2.meteocal.business.entity.Invitation;
import java.util.List;
import javax.ejb.EJB;
import javax.enterprise.context.RequestScoped;
import javax.inject.Named;

@Named
@RequestScoped
public class InvitationBean {
    
    @EJB
    InvitationManager im;
    @EJB
            UserManager um;
    
    public InvitationBean() {
    }    
    
    public List<Invitation> getInvitationByEvent(Event event){
        return im.getInvitations(event);
    }
    
    public List<Invitation> getInvitationAcceptedByEvent(Event event){
        return im.getInvitationsAccepted(event);
    }
}
